package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 农事作业信息视图
 */
@Entity
@Table(name = "pro_record_view")
public class ProRecordView extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	private static final long serialVersionUID = -3463384588133131900L;
	// Fields

	private String recordid;
	private String linkid;
	private String linkName;
	private Integer linkType;//种植（0基本环节、1种子环节、2施肥环节、3植保环节、4采收环节）养殖（0基本环节、1喂养环节、2防疫环节、3出栏环节）加工（0基本环节、1特殊环节、2成品环节）
	private String jobname;
	private String keyjob;//关键作业：0否1是
	private Date workdate;
	private String worktime;//时间：1上午2下午
	private String worker;
	private String workerName;
	private String plantStatus;//状态：0=未成熟、1=已成熟
	private Date createTime;//输入时间
	private String plantid;
	private String cropid;
	private String cropName;
	private Date beginTime;
	private Date endTime;
	private String isCurrent;//当前种植：0=历史、1=当前
	private String blockid;
	private String blockName;
	private String isuse;//地块状态0:闲置1:正常
	private String parkid;
	private String parkName;
	private Integer parkLevel;
	private String parkStatus;//园区状态1正常2停用
	private String plantType;//类型：1种植、2养殖、3加工
	private String isdel;//删除状态：0正常，1已删除
	private String remark;

	// Constructors

	/** default constructor */
	public ProRecordView() {
	}

	/** minimal constructor */
	public ProRecordView(String plantid, String blockid, String parkid) {
		this.plantid = plantid;
		this.blockid = blockid;
		this.parkid = parkid;
	}
	
	
	public ProRecordView(String recordid, String linkName, Integer linkType,
			String keyjob, Date workdate, String workerName, String plantStatus,
			String cropName, Date beginTime, String isCurrent, String blockName) {
		this.recordid = recordid;
		this.linkName = linkName;
		this.linkType = linkType;
		this.keyjob = keyjob;
		this.workdate = workdate;
		this.workerName = workerName;
		this.plantStatus = plantStatus;
		this.cropName = cropName;
		this.beginTime = beginTime;
		this.isCurrent = isCurrent;
		this.blockName = blockName;
	}

	/** full constructor */
	public ProRecordView(String linkid, String linkName, String jobname, Integer linkType,
			String keyjob, Date workdate, String worktime, String worker,
			String workerName, String plantStatus,
			Date createTime, String plantid, String cropid,
			String cropName, Date beginTime, Date endTime,
			String isCurrent, String blockid,
			String blockName, String isuse, String parkid, String parkName,
			Integer parkLevel, String parkStatus) {
		this.linkid = linkid;
		this.linkName = linkName;
		this.linkType = linkType;
		this.jobname = jobname;
		this.keyjob = keyjob;
		this.workdate = workdate;
		this.worktime = worktime;
		this.worker = worker;
		this.workerName = workerName;
		this.plantStatus = plantStatus;
		this.createTime = createTime;
		this.plantid = plantid;
		this.cropid = cropid;
		this.cropName = cropName;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.isCurrent = isCurrent;
		this.blockid = blockid;
		this.blockName = blockName;
		this.isuse = isuse;
		this.parkid = parkid;
		this.parkName = parkName;
		this.parkLevel = parkLevel;
		this.parkStatus = parkStatus;
	}

	// Property accessors
	@Id
	@Column(name = "recordid", nullable = false, length = 32)
	public String getRecordid() {
		return this.recordid;
	}

	public void setRecordid(String recordid) {
		this.recordid = recordid;
	}

	@Column(name = "linkid", length = 32)
	public String getLinkid() {
		return this.linkid;
	}

	public void setLinkid(String linkid) {
		this.linkid = linkid;
	}

	@Column(name = "link_name", length = 10)
	public String getLinkName() {
		return this.linkName;
	}

	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}
	
	@Column(name = "link_type")
	public Integer getLinkType() {
		return linkType;
	}

	public void setLinkType(Integer linkType) {
		this.linkType = linkType;
	}

	@Column(name = "jobname", length = 50)
	public String getJobname() {
		return this.jobname;
	}

	public void setJobname(String jobname) {
		this.jobname = jobname;
	}

	@Column(name = "keyjob", length = 1)
	public String getKeyjob() {
		return this.keyjob;
	}

	public void setKeyjob(String keyjob) {
		this.keyjob = keyjob;
	}

	@Column(name = "workdate", length = 23)
	public Date getWorkdate() {
		return this.workdate;
	}

	public void setWorkdate(Date workdate) {
		this.workdate = workdate;
	}

	@Column(name = "worktime", length = 1)
	public String getWorktime() {
		return this.worktime;
	}

	public void setWorktime(String worktime) {
		this.worktime = worktime;
	}

	@Column(name = "worker", length = 32)
	public String getWorker() {
		return this.worker;
	}

	public void setWorker(String worker) {
		this.worker = worker;
	}
	
	@Column(name = "worker_name", length = 50)
	public String getWorkerName() {
		return workerName;
	}

	public void setWorkerName(String workerName) {
		this.workerName = workerName;
	}

	@Column(name = "plant_status", length = 1)
	public String getPlantStatus() {
		return this.plantStatus;
	}

	public void setPlantStatus(String plantStatus) {
		this.plantStatus = plantStatus;
	}
	
	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "plantid", nullable = false, length = 32)
	public String getPlantid() {
		return this.plantid;
	}

	public void setPlantid(String plantid) {
		this.plantid = plantid;
	}

	@Column(name = "cropid", length = 32)
	public String getCropid() {
		return this.cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	@Column(name = "crop_name", length = 50)
	public String getCropName() {
		return this.cropName;
	}

	public void setCropName(String cropName) {
		this.cropName = cropName;
	}

	@Column(name = "begin_time", length = 23)
	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	@Column(name = "end_time", length = 23)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "is_current", length = 1)
	public String getIsCurrent() {
		return this.isCurrent;
	}

	public void setIsCurrent(String isCurrent) {
		this.isCurrent = isCurrent;
	}

	@Column(name = "blockid", nullable = false, length = 32)
	public String getBlockid() {
		return this.blockid;
	}

	public void setBlockid(String blockid) {
		this.blockid = blockid;
	}

	@Column(name = "block_name", length = 50)
	public String getBlockName() {
		return this.blockName;
	}

	public void setBlockName(String blockName) {
		this.blockName = blockName;
	}

	@Column(name = "isuse", length = 1)
	public String getIsuse() {
		return this.isuse;
	}

	public void setIsuse(String isuse) {
		this.isuse = isuse;
	}

	@Column(name = "parkid", nullable = false, length = 32)
	public String getParkid() {
		return this.parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "park_name", length = 100)
	public String getParkName() {
		return this.parkName;
	}

	public void setParkName(String parkName) {
		this.parkName = parkName;
	}

	@Column(name = "park_level")
	public Integer getParkLevel() {
		return this.parkLevel;
	}

	public void setParkLevel(Integer parkLevel) {
		this.parkLevel = parkLevel;
	}

	@Column(name = "park_status", length = 1)
	public String getParkStatus() {
		return this.parkStatus;
	}

	public void setParkStatus(String parkStatus) {
		this.parkStatus = parkStatus;
	}
	
	@Column(name = "plant_type", length = 1)
	public String getPlantType() {
		return plantType;
	}

	public void setPlantType(String plantType) {
		this.plantType = plantType;
	}
	
	@Column(name = "isdel", length = 1)
	public String getIsdel() {
		return isdel;
	}

	public void setIsdel(String isdel) {
		this.isdel = isdel;
	}
	
	@Column(name = "remark", length = 2000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}